{*include file="template/admin_head.htm"*}
<table id="containtable" cellspacing="0" cellpadding="0" class="{*$cf_controller*}">
    <tr>
        <td width="1979" valign="top" bgcolor="#FFFFFF">


            <div class="wrapper pr_8">             
                {*if $cf_action=='userlist'*}   
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">掌友统计</span>
                        <!--<span><a class="edit at" href="{*$cf_self_path*}-act_add.htm?dpt={*$cf_dpt*}">新增掌友</a></span>-->
                 </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
					<div class="bq clearfix"></div>
                      <form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
                          <input name="act" type="hidden" value="all" />
                            <input name="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <table width="100%" class="tbl tbl_nbr">
                                <thead>
                                    <tr class="thd">
                                    <td width="20%" align="center" class="thr">用户名</td>
                                    <td width="24%" align="center" class="thr">手机号码</td>
                                    <td align="center" class="thr">手机归属地</td>
                                    <td align="center" class="thr">注册时间</td>
                                    </tr>
                                </thead>
                                <tbody>
                                {*foreach $data_ary as $item*}
									<tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
                                    <td align="center"> <a href="javascript:void(0)" title="查看詳情" onclick="$(function(){my_iframe('{*$cf_module_path*}detail-act_user.htm?id={*$item['user_id']*}','查看掌友詳情',700,500)})" class="edit" >{*$item['user_name']*}</a>{*if $item['user_is_proxy']*}<span class="tips-red">代</span>{*/if*}</td>
                                    <td align="center">{*$item['user_phone']*}</td>
                                    <td width="32%" align="center">{*$item['phone_info']*}</td>
                                  <td width="24%" align="center">{*$item['user_reg_time']*}</td>
                                  </tr>
								{*foreachelse*}
                                 <tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
                                    <td colspan="4" align="center">没有相关数据</td>
                                  </tr>
                                
                                {*/foreach*}
                                  

                                    <tr class="tft">
                                        <td colspan="4" style="padding:0;">
                                            <table width="100%" border="0">
                                                <tr>
                                                    <td align="center" style="border:0;padding:0;"><div class="turnPage"><p>{*$page*}</p></div></td>
                                                </tr>
                                            </table>                                </td>
                                    </tr>
                                </tbody>
                            </table>
                      </form>
                  </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
     			
                
                
                {*elseif $cf_action == 'nation'*}
				<script type="text/javascript">
				$(function(){				

                    //省市联动
                    load_province('area','{*$province*}','{*$city*}');
                    load_province('cate','{*$cate1*}','{*$cate2*}');
                    $("#province").change(function(){                                   //更改省份
                        change_province('area',$(this).val());
                    });
                    $("#cate1").change(function(){                                   //更改分类
                        change_province('cate',$(this).val());
                    });

                    $("#search_form").submit(function(){
                        if($("#province").val() < '0'){
							my_alert('请选择省份','操作提示',"$('#province').focus()");
							return false;
						};
                        if($("#province").val() == '0'){							
							$("#act").val('nation');
							
						}else{
							$("#act").val('index');	
						}
                    });
										
				})
				
				
				</script>
             
                <div class="pannel">
                    <div class="pl"></div>
                    <div class="pr"></div>
                    <div class="pc">
                    <form action="" method="get" id="search_form" name="search_form">
                        <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />                       
                        <input name="act" id="act" type="hidden" value="{*$cf_action*}" />
                        <div class="pt">  					
                            地区:
                            <select name="province" id="province">
                              <option value='' selected="selected">请选择省份</option>
                                <option value='0' selected="selected" >全国</option>
                          </select>

                            <select name="city" id="city" disabled="disabled" style="display:none">
                                <option value='' selected="selected">请选择城市</option>

                            </select>
                            &nbsp;&nbsp;
                            运行商:{*html_options name=supplier options=$cf_info_var_common['phone_supplier'] selected=$supplier*}
							&nbsp;&nbsp;
                             注册时间:
                                <input name="start" class="Wdate" type="text" id="act_start" value="{*$start*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="13" maxlength="30" />
                              到<input name="end" class="Wdate" type="text" id="act_end" value="{*$end*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="13" maxlength="30" />
				        
                    <input type="image" src="public/images/admin/icon_search_btn.gif">
                      </div>
                    </form>
                </div>
                </div>
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">掌友统计</span>
                        <!--<span><a class="edit at" href="{*$cf_self_path*}-act_add.htm?dpt={*$cf_dpt*}">新增掌友</a></span>-->
                 </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
					<div class="bq clearfix"></div>
                      <form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
                          <input name="act" type="hidden" value="all" />
                            <input name="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <table width="100%" class="tbl tbl_nbr">
                                <thead>
                                    <tr class="thd">
                                    <td width="27%" align="center" class="thr">省份</td>
                                    <td width="34%" align="center" class="thr">掌友总数</td>
                                    <td align="center" class="thr">操作</td>
                                    </tr>
                                </thead>
                                <tbody>
                                {*foreach $data_ary as $item*}
								

                                <tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
                                    <td align="center">{*$item['name']*}</td>
                                    <td align="center"><a href="{*$cf_self_path*}-act_userlist_province_{*$item['user_phone_province']*}.htm?dpt={*$cf_dpt*}&start={*$start*}&end={*$end*}&supplier={*$supplier*}" class="edit red" target="_blank">{*$item['total']*}</a></td>
                                  <td width="39%" align="center"><a href="{*$cf_self_path*}-act_index_province_{*$item['user_phone_province']*}.htm?dpt={*$cf_dpt*}&start={*$start*}&end={*$end*}&supplier={*$supplier*}" class="edit" target="_blank">查看城市数据</a> || <a href="{*$cf_self_path*}-act_userlist_province_{*$item['user_phone_province']*}.htm?dpt={*$cf_dpt*}&start={*$start*}&end={*$end*}&supplier={*$supplier*}" class="edit" target="_blank">查看掌友</a></td>
                                  </tr>
                                 {*foreachelse*}
                                 <tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
                                    <td colspan="4" align="center">没有相关数据</td>
                                  </tr>
                                {*/foreach*}
                                  

                                    <tr class="tft">
                                        <td colspan="3" style="padding:0;">
                                            <table width="100%" border="0">
                                                <tr>
                                                    <td width="27%" align="right" style="border:0;padding:0; color:#000;  ">合计:</td>
                                                    <td width="73%" align="left" style="border:0;padding:0; color:#F00; font-size:18px">&nbsp;{*$total*}</td>
                                                </tr>
                                            </table>                                </td>
                                    </tr>
                                </tbody>
                            </table>
                      </form>
                  </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                
                
               
                {*else*}
				<script type="text/javascript">
				$(function(){				

                    //省市联动
                    load_province('area','{*$province*}','{*$city*}');
                    load_province('cate','{*$cate1*}','{*$cate2*}');
                    $("#province").change(function(){                                   //更改省份
                        change_province('area',$(this).val());
                    });
                    $("#cate1").change(function(){                                   //更改分类
                        change_province('cate',$(this).val());
                    });

                    $("#search_form").submit(function(){
                        if($("#province").val() < '0'){
							my_alert('请选择省份','操作提示',"$('#province').focus()");
							return false;
						};
                        if($("#province").val() == '0'){							
							$("#act").val('nation');						
						}
                    });
					
					
				})
				
				
				</script>
             
                <div class="pannel">
                    <div class="pl"></div>
                    <div class="pr"></div>
                    <div class="pc">
                    <form action="" method="get" id="search_form" name="search_form">
                        <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />                        
                        <input name="act" id="act" type="hidden" value="{*$cf_action*}" />
                        <div class="pt">  					
                            地区:
                            <select name="province" id="province">
                              <option value='' selected="selected">请选择省份</option>
                                <option value='0' >全国</option>
                          </select>

                            <select name="city" id="city" disabled="disabled" style="display:none">
                                <option value='' selected="selected">请选择城市</option>

                            </select>
                            &nbsp;&nbsp;
                            运行商:{*html_options name=supplier options=$cf_info_var_common['phone_supplier'] selected=$supplier*}
							&nbsp;&nbsp;
                             注册时间:
                                <input name="start" class="Wdate" type="text" id="act_start" value="{*$start*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="13" maxlength="30" />
                              到<input name="end" class="Wdate" type="text" id="act_end" value="{*$end*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="13" maxlength="30" />
				        
                    <input type="image" src="public/images/admin/icon_search_btn.gif">
                      </div>
                    </form>
                </div>
                </div>
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">掌友统计</span>
                        <!--<span><a class="edit at" href="{*$cf_self_path*}-act_add.htm?dpt={*$cf_dpt*}">新增掌友</a></span>-->
                 </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
					<div class="bq clearfix"></div>
                      <form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
                          <input name="act" type="hidden" value="all" />
                            <input name="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <table width="100%" class="tbl tbl_nbr">
                                <thead>
                                    <tr class="thd">
                                    <td width="27%" align="center" class="thr">城市</td>
                                    <td width="34%" align="center" class="thr">掌友总数</td>
                                    <td align="center" class="thr">操作</td>
                                    </tr>
                                </thead>
                                <tbody>
                                {*foreach $data_ary as $item*}
								

                                <tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
                                    <td align="center">{*$item['name']*}</td>
                                    <td align="center"><a href="{*$cf_self_path*}-act_userlist_city_{*$item['user_phone_city']*}.htm?dpt={*$cf_dpt*}&start={*$start*}&end={*$end*}&supplier={*$supplier*}" class="edit red" target="_blank">{*$item['total']*}</a></td>
                                  <td width="39%" align="center"><a href="{*$cf_self_path*}-act_userlist_city_{*$item['user_phone_city']*}.htm?dpt={*$cf_dpt*}&start={*$start*}&end={*$end*}&supplier={*$supplier*}" class="edit" target="_blank">查看掌友</a></td>
                                  </tr>
                                 {*foreachelse*}
                                 <tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
                                    <td colspan="4" align="center">没有相关数据</td>
                                  </tr>
                                {*/foreach*}
                                  

                                    <tr class="tft">
                                        <td colspan="3" style="padding:0;">
                                            <table width="100%" border="0">
                                                <tr>
                                                    <td width="27%" align="right" style="border:0;padding:0; color:#000;  ">合计:</td>
                                                    <td width="73%" align="left" style="border:0;padding:0; color:#F00; font-size:18px">&nbsp;{*$total*}</td>
                                                </tr>
                                            </table>                                </td>
                                    </tr>
                                </tbody>
                            </table>
                      </form>
                  </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>

                {*/if*}
                
                
            </div>        
           </td>
    </tr>
</table>
{*include file="template/admin_foot.htm"*}